package com.yonyou.gmmc.service.shopping.model;

import java.util.Date;
import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "TM_TP_ADDRESS")
public class TmTpAddress {
    @Column(name = "ADDRESS_CODE")
    private Long addressCode;

    @Column(name = "ADDRESS_NAME")
    private String addressName;

    @Column(name = "PARENT_CODE")
    private Long parentCode;

    @Column(name = "RANK_TYPE")
    private Short rankType;

    @Column(name = "STATUS")
    private Short status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "CREATE_DATE")
    private Date createDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "UPDATE_DATE")
    private Date updateDate;

    /**
     * @return ADDRESS_CODE
     */
    public Long getAddressCode() {
        return addressCode;
    }

    /**
     * @param addressCode
     */
    public void setAddressCode(Long addressCode) {
        this.addressCode = addressCode;
    }

    /**
     * @return ADDRESS_NAME
     */
    public String getAddressName() {
        return addressName;
    }

    /**
     * @param addressName
     */
    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }

    /**
     * @return PARENT_CODE
     */
    public Long getParentCode() {
        return parentCode;
    }

    /**
     * @param parentCode
     */
    public void setParentCode(Long parentCode) {
        this.parentCode = parentCode;
    }

    /**
     * @return RANK_TYPE
     */
    public Short getRankType() {
        return rankType;
    }

    /**
     * @param rankType
     */
    public void setRankType(Short rankType) {
        this.rankType = rankType;
    }

    /**
     * @return STATUS
     */
    public Short getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Short status) {
        this.status = status;
    }

    /**
     * @return CREATE_DATE
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return UPDATE_DATE
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}